package com.feicheng.persistence.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.persistence.entity.CardRecord;
import com.feicheng.persistence.entity.VoucherRecord;
import com.feicheng.persistence.mapper.CardRecordMapper;
import com.feicheng.persistence.mapper.VoucherRecordMapper;
import com.feicheng.persistence.model.VoucherRecordMain;
import com.feicheng.persistence.service.ICardRecordService;
import com.feicheng.persistence.service.IVoucherRecordService;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.Map;
import java.util.function.Function;

@Service
public class VoucherRecordServiceImpl extends ServiceImpl<VoucherRecordMapper, VoucherRecord> implements IVoucherRecordService {

    @Override
    public Page<VoucherRecordMain> getVouchersByPage(Page<VoucherRecordMain> voucherRecordMainPage, QueryWrapper<VoucherRecordMain> queryWrapper) {
        return this.getBaseMapper().getVouchersByPage(voucherRecordMainPage, queryWrapper);
    }
}
